﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DAL
{
    public class LoginHistory
    {
        #region Variables
        /// <summary>
        /// User Registration Variables
        /// </summary>
        private int _LoginHistoryID;
        private int _UserID;
        private String _LoginDate;
        private String _LogoutDate;
        private String _Descriptions;
        private String _SessionId;
        #endregion

        public LoginHistory()
        {
        }

        /// <summary>
        /// Gets or sets the <b>_LoginHistoryID</b> attribute value.
        /// </summary>
        /// <value>The <b>_LoginHistoryID</b> attribute value.</value>
        /// 
        public int LoginHistoryID
        {
            get
            {
                return _LoginHistoryID;

            }
            set
            {
                _LoginHistoryID = value;
            }
        }

        /// <summary>
        /// Gets or sets the <b>_UserID</b> attribute value.
        /// </summary>
        /// <value>The <b>_UserID</b> attribute value.</value>
        /// 
        public int UserID
        {
            get
            {
                return _UserID;
                     
            }
            set
            {
                _UserID = value;
            }
        }
        /// <summary>
        /// Gets or sets the <b>_LoginDate</b> attribute value.
        /// </summary>
        /// <value>The <b>_LoginDate</b> attribute value.</value>
        public String LoginDate
        {
            get
            {
                return String.Format("{0:d/M/yyyy HH:mm:ss}", _LoginDate);

            }
            set
            {
                _LoginDate = String.Format("{0:d/M/yyyy HH:mm:ss}", value);
            }
        }
        /// <summary>
        /// Gets or sets the <b>_LogoutDate</b> attribute value.
        /// </summary>
        /// <value>The <b>_LogoutDate</b> attribute value.</value>
        public String LogoutDate
        {
            get
            {
                return String.Format("{0:d/M/yyyy HH:mm:ss}", _LogoutDate);

            }
            set
            {
                _LogoutDate = String.Format("{0:d/M/yyyy HH:mm:ss}", value);
            }
        }
        /// <summary>
        /// Gets or sets the <b>_Descriptions</b> attribute value.
        /// </summary>
        /// <value>The <b>_Descriptions</b> attribute value.</value>
        public String Descriptions
        {
            get
            {
                return _Descriptions;

            }
            set
            {
                _Descriptions = value;
            }
        }

        public String SessionId
        {
            get
            {
                return _SessionId;

            }
            set
            {
                _SessionId = value;
            }
        }

    }
}
